package com.geek.factory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("product_materials") // 假设表名为product_material，请根据实际表名修改
@ApiModel("产品原料关联实体")
public class ProductMaterial {

    @ApiModelProperty("主键ID")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("产品ID")
    private Integer productId;

    @ApiModelProperty("原料ID")
    private Integer materialId;

    @ApiModelProperty("单位")
    private String unit;

}
